<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>treeDemo</title>
<%@ include file="../BasePage.jsp"%>
</head>
<body>
<div class="treeDiv"><ul id="tree" class="easyui-tree"></ul></div>
</body>
<script type="text/javascript">
	$(function(){
	    $("#tree").tree({
	        url:"<%=path%>/tree/123456/index.json",
	        animate:true,
	        dnd:false,
	        checkbox:false,
	        lines:true,
	        onBeforeExpand:function(node,param){
	            $("#tree").tree("options").url = "<%=path%>/tree/"+node.id+"/child.json"; //+ node.id;change the url                 
	        },
	        onDblClick:function(node){
	            $.messager.alert("树的内容",node.text,"info");
            }
	    });
	});
</script>
</html>